How can I unset or deactive callback-functions?

I have a callback-function assigned to a listview with the set-function.

 

Can I unassign this callback-function or deactivate it temporarily?


MarcoLuk - Fri Sep 29 10:57:53 EDT 2017

Re: How can I unset or deactive callback-functions?
Mathias Mamsch - Mon Oct 02 08:57:28 EDT 2017

I don't think there is a native function for this, but you can always use a flag: 

bool bDoCallback = true; 

void myCallback(DBE) {
     if (!bDoCallback) return; 
     // your callback 
}

maybe this helps, regards, Mathias

Re: How can I unset or deactive callback-functions?
MarcoLuk - Mon Oct 02 09:11:33 EDT 2017

Mathias Mamsch - Mon Oct 02 08:57:28 EDT 2017

I don't think there is a native function for this, but you can always use a flag: 

bool bDoCallback = true; 

void myCallback(DBE) {
     if (!bDoCallback) return; 
     // your callback 
}

maybe this helps, regards, Mathias

Hello Mathias,

 

thanks for this Information. Meanwhile I also introduced a variable in order to exit the function.

 

Regards